import request from '@/utils/request'

// 查询查询命令数据来源列表
export function listBiSqlFromTable(query) {
  return request({
    url: '/conf/BiSqlFromTable/list',
    method: 'get',
    params: query
  })
}

// 查询查询命令数据来源详细
export function getBiSqlFromTable(id) {
  return request({
    url: '/conf/BiSqlFromTable/' + id,
    method: 'get'
  })
}

// 新增查询命令数据来源
export function addBiSqlFromTable(data) {
  return request({
    url: '/conf/BiSqlFromTable',
    method: 'post',
    data: data
  })
}

// 修改查询命令数据来源
export function updateBiSqlFromTable(data) {
  return request({
    url: '/conf/BiSqlFromTable',
    method: 'put',
    data: data
  })
}

// 删除查询命令数据来源
export function delBiSqlFromTable(id) {
  return request({
    url: '/conf/BiSqlFromTable/' + id,
    method: 'delete'
  })
}
